package com.SmartCare.controller.client;

import com.SmartCare.common.Result;
import com.SmartCare.service.homeInfo.DetailsService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/contact")
@Api(tags = "C端院方在线相关接口")
@Slf4j
public class ContactController {

    @Resource
    private DetailsService detailsService;

    /**
     * 院方在线联系信息获取
     */
    @GetMapping("/info")
    public Result getInfo(String careHomeName){
        return detailsService.getInfo(careHomeName);
    }
}
